package cn.itcast.nems.discounts.dao.entiry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 优惠
 * </p>
 *
 * @author zhouwei
 * @since 2023/8/28 6:28 PM
 **/
@TableName("discounts")
@Data
public class EmsDiscounts {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /*优惠名称*/
    private String discountsName;
    @TableField("approval_oa_number")
    private String approvalOANumber;
    /* 优惠类型  0 直接优惠金额  1 优惠百分比   2*/
    private Integer discountsStatus;
    /* 优惠金额*/
    private BigDecimal discountsMoney;
    /*优惠折扣*/
    private Double discountsRate;
    /*押金金额*/
    private BigDecimal antecedentMoney;
    /* 是否启用  0 停用  1 启用*/
    private Integer status;
    /*描述*/
    private String description;
    /*  营销政策编号*/
    private String marketingNum;
    /*创建时间*/
    private LocalDateTime createTime;
    /*创建人ems账号*/
    @TableField("ep_user_name")
    private String epUsername;
    /*创建人真实姓名*/
    private String epRealName;
    /*优惠级别*/
    private String discountLevelId;
    /*可见度   0所有人可见  1仅财务可见 2凭单专用—员工亲属优惠 3凭单专用—员工亲属优惠*/
    private Integer visibility;
    /* 是否需要oa 流水单号  0无需单号 1 需OA流水单号 */
    private Integer oaNumber;
    /*班级开课起始时间*/
    private LocalDateTime clazzBeginDate;
    /*班级开课结束时间*/
    private LocalDateTime clazzEndDate;
    /*交费开始时间*/
    private LocalDateTime feeBeginDate;
    /*交费结束时间*/
    private LocalDateTime feeEndDate;
    private String fileUrl;
}
